Quick Start
Get up and running with SvelteBolt's AI-assisted development in under 5 minutes.
π Step 1: Set Up Your Environmentβ
-
Install SvelteBolt using the create command:
npx sbolt my-saas-app
cd my-saas-app -
Open in VS Code with Copilot enabled:
code .
-
Verify AI Access: Ensure you have GitHub Copilot or another AI assistant active
π Step 2: Locate the Prompt Libraryβ
Navigate to the AI prompts directory in your project:
docs/ai-prompts/
βββ README.md # Main guide
βββ authentication-prompts.md # Auth features
βββ billing-prompts.md # Subscription logic
βββ database-prompts.md # Data operations
βββ ui-prompts.md # Interface design
βββ api-prompts.md # Backend APIs
βββ deployment-prompts.md # Platform deployment
βββ feature-extension-prompts.md # Advanced features
βββ integration-prompts.md # Third-party services
π― Step 3: Your First AI-Assisted Featureβ
Let's add Google OAuth authentication using AI assistance:
1. Open Copilot Chatβ
Press Ctrl+Shift+I
(Windows/Linux) or Cmd+Shift+I
(Mac)
2. Copy This Promptβ
I want to add Google OAuth authentication to my SvelteBolt app.
Current SvelteBolt setup:
- Authentication pages in src/routes/auth/
- Login form in src/lib/components/login-form.svelte
- Supabase auth configured in src/lib/server/database/supabase.ts
I need to:
1. Configure Google OAuth in Supabase dashboard
2. Add Google OAuth button to login form
3. Handle OAuth callback
4. Test the complete flow
Please guide me through each step with exact code changes for my SvelteBolt project structure.
3. Follow AI Guidanceβ
The AI will provide step-by-step instructions tailored to your exact project structure.
4. Implement and Testβ
Follow the AI's guidance to implement the feature and test it works.
π Step 4: Build Your Next Featureβ
Choose another prompt from the library:
- Add Stripe billing: Use
billing-prompts.md
- Create admin dashboard: Use
ui-prompts.md
- Build REST API: Use
api-prompts.md
- Deploy to Vercel: Use
deployment-prompts.md
π‘ Pro Tips for AI Developmentβ
1. Be Specificβ
β Bad: "Add authentication"
β
Good: "Add Google OAuth with custom redirect handling"
2. Include Contextβ
Always mention you're using SvelteBolt so AI understands your project structure.
3. Ask for Explanationsβ
Please explain why we need RLS policies for this table and show me the exact SQL.
4. Request Testing Stepsβ
Show me how to test this feature and what to check for potential issues.
5. Iterate and Improveβ
This works great! Now how can I add email notifications when users sign up?
π Common AI Workflowsβ
Adding a New Featureβ
- Copy base prompt from relevant category
- Customize for your specific needs
- Paste into AI assistant
- Follow guidance step-by-step
- Test and iterate
Debugging Issuesβ
- Describe the problem with error messages
- Include relevant code snippets
- Mention SvelteBolt context
- Ask for diagnosis and solution
Optimizing Codeβ
- Share current implementation
- Ask for improvements
- Request performance optimizations
- Get best practices guidance
π Advanced AI Techniquesβ
Multi-Step Planningβ
I want to build a complete user onboarding flow with:
1. Email verification
2. Profile setup
3. Subscription selection
4. Welcome tour
Please create a step-by-step implementation plan for my SvelteBolt app.
Architecture Decisionsβ
I'm building a multi-tenant SaaS. Should I use row-level security or separate databases?
Consider my SvelteBolt setup with Supabase and show me the implementation approach.
Code Reviewβ
Please review this SvelteBolt component for security, performance, and best practices:
[paste your code]
π― Next Stepsβ
- Explore all prompt categories in
docs/ai-prompts/
- Customize prompts for your specific SaaS idea
- Join the community to share AI development tips
- Build your MVP faster than ever before
Ready to build? Start with any prompt and let AI guide you to success! π